package com.jiangfan.tank;

public class Main {
    public static void main(String[] args) throws InterruptedException {
        TankFrame tf = new TankFrame();

        int initTankCount = Integer.parseInt((String) PropertyMgr.get("initialCount"));

        //初始化敌方坦克
        for(int i = 0; i < initTankCount; i++) {
            tf.enemyTanks.add(new Tank(50 + i * 100, 200, Dir.DOWN, Group.Enemy, tf));
        }

        new Thread(()->new Audio("audio/war1.wav").loop()).start();

        while(true){
            Thread.sleep(25);
            tf.repaint();
        }
    }
}
